<div id="leftmusm">
    <div class="layui-collapse" >
        <div class="layui-colla-item">
            <h2 class="layui-colla-title">公告</h2>
            <div class="layui-colla-content layui-show">
                <p id="sessio" class="layui-btn-fluid" style="height: 48px;line-height: 48px;text-align: center;font-size: 14px;border: none;">null</p>
                <button lay-id="1" onclick="" type="button" class="layui-btn layui-btn-normal">概况</button>
                <button lay-id="1" onclick="window.location.replace($('body').attr('id')+'index.html')" type="button" class="layui-btn layui-btn-normal">转到首页</button>
            </div>
        </div>
        <div class="layui-colla-item">
            <h2 class="layui-colla-title">分类管理</h2>
            <div class="layui-colla-content layui-show">
                <button lay-id="2" type="button" class="layui-btn layui-btn-normal">添加分类</button>
                <button lay-id="3" type="button" class="layui-btn layui-btn-normal">删除分类</button>
                <button lay-id="4" type="button" class="layui-btn layui-btn-normal">修改分类</button>
            </div>
        </div>
        <div class="layui-colla-item">
            <h2 class="layui-colla-title">产品管理</h2>
            <div class="layui-colla-content layui-show">
                <button lay-id="5" type="button" class="layui-btn layui-btn-normal">添加产品</button>
                <button lay-id="6" type="button" class="layui-btn layui-btn-normal">删除产品</button>
                <button lay-id="7" type="button" class="layui-btn layui-btn-normal">修改产品</button>
            </div>
        </div>
        <div class="layui-colla-item">
            <h2 class="layui-colla-title">关于开发者</h2>
            <div class="layui-colla-content layui-show">
                <button type="button" class="layui-btn layui-btn-normal" onclick="javascript:$('#myModal20').modal('show');">关于开发者</button>
                <button type="button" class="layui-btn layui-btn-normal" onclick="javascript:window.location.replace($('body').attr('id')+'adminroot.html?END=1')">退出程序</button>
            </div>
        </div>
    </div>
</div>
<div id="rightmusm">
    <div class="layui-tab" lay-filter="demo" style="margin: 0px auto 0px auto;">
        <ul class="layui-tab-title">
            <li lay-id="1" class="layui-this">概况</li>
            <li lay-id="2">添加分类</li>
            <li lay-id="3">删除分类</li>
            <li lay-id="4">修改分类</li>
            <li lay-id="5">添加产品</li>
            <li lay-id="6">删除产品</li>
            <li lay-id="7">修改产品</li>

        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <div id="groupproductsitem" style="width: 100%;height:400px;float: right;background-color:#2c343c;"></div>
                <div style="padding: 20px; background-color: #2c343c;">
                    <div class="layui-row layui-col-space15">
                        <div class="layui-col-md6">
                            <div class="layui-card">
                                <div class="layui-card-header">温馨提示</div>
                                <div class="layui-card-body">
                                    欢迎使用SnailCatMall图册维护管理系统<br/>
                                    版权归作者所有开发时间于：2019年7月14日
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-card">
                                <div class="layui-card-header">开发维护需求联系</div>
                                <div class="layui-card-body">
                                    联系QQ：1012518027 问题：599<br/>
                                    联系电话：15880973723
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md12">
                            <div class="layui-card">
                                <div class="layui-card-header">数据分类<input  style="margin: 0px 10px;padding-left: 12px;height: 25px;line-height: 23px;width: 80px;" type="button" onclick="layui.flashflah();" value="刷新分类" class="layui-btn layui-btn-danger" /></div>
                                <div class="layui-card-body">
                                    <table class="layui-hide" id="classIFY" lay-filter="classIFY"></table>
                                    <div id="Classifypaging"></div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-md12">
                            <div class="layui-card">
                                <div class="layui-card-header">全部数据信息<input id="classifysimte" style="height: 25px;margin: 0px 10px;text-align: center;width: 140px;" type="text" disabled="disabled" value="" /><input id="onifs" style="margin: 0px 10px;padding-left: 12px;height: 25px;line-height: 23px;width: 80px;" type="button" onclick="layui.productflag();" value="搜索条件" class="layui-btn layui-btn-danger" /><input id="clarys" style="margin: 0px 10px;padding-left: 12px;height: 25px;line-height: 23px;width: 80px;" type="button" onclick="javascript: $('#classifysimte').val('');" value="清空条件" class="layui-btn layui-btn-danger" />  <button style="height: 25px;line-height: 25px;margin: 0px;width: 125px;" onclick="javascript: $('#myModal2').modal('show');" class="layui-btn layui-btn-normal">使用说明书</button></div>
                                <div class="layui-card-body">
                                    <table class="layui-hide" id="PRODUCT" lay-filter="PRODUCT"></table>
                                    <div id="PRODUCTpaging"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-tab-item">
                <div class="layui-input-block " style="width:100%;margin-left: 0px;">
                    <label style="width: auto;text-align: left;font-size: large;" class="layui-form-label">编号获取：</label>
                    <input id="umd5" style="margin-left: 0px;width: 80%;float: left;" type="text" name="title" lay-verify="title" autocomplete="off" placeholder="获取编号" disabled="disabled" class="layui-input">
                </div>
                <div class="layui-input-block" style="width:100%;margin-left: 0px;margin-top: 10px;">
                    <label style="width: auto;text-align: left;font-size: large;" class="layui-form-label">分类名称：</label>
                    <input id="nameprodurect" style="margin-left: 0px;width: 80%;float: left;" type="text" name="title" lay-verify="title" autocomplete="off" placeholder="分类名称" class="layui-input">
                </div>
                <div class="layui-input-block" style="width:100%;margin-left: 0px;margin-top: 10px;float: left;">
                    <label style="width: auto;text-align: left;font-size: large;" class="layui-form-label">分类图标：</label>
                    <img id="Addicons" style="width:200px;height:200px;float: left;" src="webapp/images/418ec81998a59b07d302bcb3b136e26.png"/>
                    <button onclick="javascript:claryAll()" style="margin-left: 0px;width: 80%;float: left;width: 15%;" type="button" name="title" class="layui-btn layui-btn-warm">初始化上传组件</button>
                    <button onclick="javascript:onAddicons()" style="margin: 0px;margin-left: 0px;width: 80%;float: left;width: 15%;" type="button" name="title" class="layui-btn layui-btn-danger upimg" >上传图标</button>
                </div>
                <div class="layui-input-block" style="width:100%;margin-left: 0px;margin-top: 10px;clear: both;float: left;">
                    <button onclick="javascript:addprodurt();" type="button" class="layui-btn layui-btn-danger">添加分类</button> <button style="margin-top: 0px;" onclick="javascipt:porsMD5();" type="button" class="layui-btn layui-btn-warm">获取编号</button><br/>
                </div>
            </div>
            <div class="layui-tab-item">
                <div class="layui-input-inline" style="width: 100%;height: 50px;margin-top: 10px;">
                    <label style="width: auto;text-align: left;font-size: large;" class="layui-form-label">删除分类：</label>
                    <select id="addclassfiy" name="modules" style="width: 80%;height: 38px;text-align: center;font-size: large;">

                    </select>
                </div>
                <div class="layui-input-block" style="width:100%;margin-left: 0px;">
                    <button onclick="javascript:delectclass();" type="button" class="layui-btn layui-btn-danger">删除分类</button><button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:shflasclass();" type="button" class="layui-btn layui-btn-normal">刷新分类</button> <button style="margin-top: 0px;" onclick="javascipt: $('#myModal6').modal('show');" type="button" class="layui-btn layui-btn-warm">删前必看</button><br/>
                </div>
            </div>
            <div class="layui-tab-item">
                <div class="layui-input-inline" style="width: 100%;height: auto;">
                    <label style="width: auto;text-align: left;font-size: large;" class="layui-form-label">选择分类：</label>
                    <select id="updateclassfiy" onclick="javascript:tihsi(this)" name="modules" style="width: 80%;height: 38px;text-align: center;font-size: large;"></select>
                    <br/>
                    <label style="width: auto;text-align: left;font-size: large;margin-top: 10px;margin-left: -120px;" class="layui-form-label">修改分类：</label>
                    <input id="newnames" style="width: 80%;height: 38px;text-align: center;font-size: large;margin-top: 10px;" value="" placeholder="新分类名称" />
                </div>
                <div class="layui-input-block" style="width:100%;margin-left: 0px;margin-top: 10px;float: left;">
                    <label style="width: auto;text-align: left;font-size: large;" class="layui-form-label">分类图标：</label>
                    <img id="UPicons" style="width:200px;height:200px;float: left;" src="webapp/images/418ec81998a59b07d302bcb3b136e26.png"/>
                    <button onclick="javascript:claryAll()" style="margin-left: 0px;width: 80%;float: left;width: 15%;" type="button" name="title" class="layui-btn layui-btn-warm">初始化上传组件</button>
                    <button onclick="javascript:onUPicons()" style="margin:0px;margin-left: 0px;width: 80%;float: left;width: 15%;" type="button" name="title" class="layui-btn layui-btn-danger upimg">上传图标</button>
                </div>
                <div class="layui-input-block" style="width:100%;margin-left: 0px;margin-top: 10px;float: left;">
                    <button onclick="javascript:updatectclass();" type="button" class="layui-btn layui-btn-danger">修改分类</button><button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:shflasclass();" type="button" class="layui-btn layui-btn-normal">刷新分类</button>
                </div>
            </div>
            <div class="layui-tab-item">
                <label style="width: auto;text-align: left;font-size: large;" class="layui-form-label">选择分类：</label>
                <select id="addProduct" name="modules" style="width: 80%;height: 38px;text-align: center;font-size: large;"></select>
                <div class="layui-input-block" style="width:100%;margin-left: 0px;margin-top: 10px;">
                    <button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:shflasclass();" type="button" class="layui-btn layui-btn-normal">刷新分类</button>
                </div>
                <label style="width: auto;text-align: left;font-size: large;margin-top: 10px;" class="layui-form-label">产品编号：</label>
                <input id="PRODUCT_NUMBER" style="width: 80%;height: 38px;text-align: center;font-size: large;margin-top: 10px;" value="" placeholder="产品编号" />
                <br/>
                <label style="width: auto;text-align: left;font-size: large;margin-top: 10px;margin-left: -120px;" class="layui-form-label">产品名称：</label>
                <input id="PRODUCT_NAME" style="width: 80%;height: 38px;text-align: center;font-size: large;margin-top: 10px;" value="" placeholder="产品名称" />
                <br/>
                <label style="width: auto;text-align: left;font-size: large;margin-top: 10px;" class="layui-form-label">产品属性：</label>
                <textarea id="PRODUCT_PROPERTY" style="resize: none;width: 80%;height: 38px;text-align: left;font-size: large;margin-top: 10px;height: 268px;" value="" placeholder="产品属性"></textarea>
                <br/>
                <label style="width: auto;text-align: left;font-size: large;margin-top: 10px;" class="layui-form-label">产品图片：</label>
                <!--<img id="imgs" style="width: 200px;height: 200px;" src="webapp/images/418ec81998a59b07d302bcb3b136e26.png"/>-->
                <div id="imgarray">

                </div>
                <button onclick="javascript:claryAll()" style="margin-left: 0px;width: 80%;float: left;width: 15%;" type="button" name="title" class="layui-btn layui-btn-warm">初始化上传组件</button>
                <button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:fileimgs();" type="button" class="layui-btn layui-btn-normal upimg">上传图片</button>
                <button style="margin-top: 0px;margin-left: 4px;width: 140px;" onclick="javascript:$('#myModal14').modal('show');" type="button" class="layui-btn layui-btn-normal">上传图片说明</button>
                <div class="layui-input-block" style="text-align: center;width:100%;margin-left: 0px;margin-top: 10px;">
                    <button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:ONPRODUCT();" type="button" class="layui-btn layui-btn-normal">添加产品</button>
                </div>
            </div>
            <div class="layui-tab-item">
                <label style="width: auto;text-align: left;font-size: large;" class="layui-form-label">选择分类：</label>
                <select id="delectProduct" name="modules" style="width: 80%;height: 38px;text-align: center;font-size: large;"></select>
                <div class="layui-input-block" style="width:100%;margin-left: 0px;margin-top: 10px;">
                    <button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:shflasclass();" type="button" class="layui-btn layui-btn-normal">刷新分类</button>
                    <button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:layui.productflSH();" type="button" class="layui-btn layui-btn-normal">搜索产品</button>
                    <input placeholder="请先搜索分类" id="nunbers" style="margin-top: 0px;margin-left: 4px;width: 30%;float: left;height: 40px;text-align: center;" disabled="disabled"  type="text" class="layui-input" />
                    <button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:deleteprot();" type="button" class="layui-btn layui-btn-normal">删除产品</button>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header" style="margin-top: 10px;">全部数据信息</div>
                        <div class="layui-card-body">
                            <table class="layui-hide" id="PRODUCTA" lay-filter="PRODUCTA"></table>
                            <div id="PRODUCTApaging"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-tab-item">
                <label style="width: auto;text-align: left;font-size: large;" class="layui-form-label">选择分类：</label>
                <select id="updateProduct" name="modules" style="width: 80%;height: 38px;text-align: center;font-size: large;"></select>
                <div class="layui-input-block" style="width:100%;margin-left: 0px;margin-top: 10px;">
                    <button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:shflasclass();" type="button" class="layui-btn layui-btn-normal">刷新分类</button>
                    <button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:layui.UpdateproductflSH();" type="button" class="layui-btn layui-btn-normal">搜索产品</button>
                    <button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:$('#myModal19').modal('show');" type="button" class="layui-btn layui-btn-normal">修改必看</button>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header" style="margin-top: 10px;">全部数据信息</div>
                        <div class="layui-card-body">
                            <table class="layui-hide" id="updatePRODUCTA" lay-filter="updatePRODUCTA"></table>
                            <div id="updatePRODUCTpaging"></div>
                        </div>
                    </div>
                </div>
                <input id="hiddenID" type="hidden" value=""/>

                <label style="width: auto;text-align: left;font-size: large;margin-top: 10px;" class="layui-form-label">新分类：</label>
                <select id="NewupdateProduct" name="modules" style="width: 80%;height: 38px;text-align: center;margin-top: 10px;margin-left: 17px;font-size: large;"></select>
                <label style="width: auto;text-align: left;clear: both;font-size: large;margin-top: 10px" class="layui-form-label">产品编号：</label>
                <input id="UPDATEPRODUCT_NUMBER" style="width: 80%;height: 38px;text-align: center;font-size: large;margin-top: 10px;" value="" placeholder="产品编号" />
                <br/>
                <label style="width: auto;text-align: left;font-size: large;margin-top: 10px;margin-left: -120px;" class="layui-form-label">产品名称：</label>
                <input id="UPDATEPRODUCT_NAME" style="width: 80%;height: 38px;text-align: center;font-size: large;margin-top: 10px;" value="" placeholder="产品名称" />
                <br/>
                <label style="width: auto;text-align: left;font-size: large;margin-top: 10px;" class="layui-form-label">产品属性：</label>
                <textarea id="UPDATEPRODUCT_PROPERTY" style="resize: none;width: 80%;height: 38px;text-align: left;font-size: large;margin-top: 10px;height: 268px;" value="" placeholder="产品属性"></textarea>
                <br/>
                <label style="width: auto;text-align: left;font-size: large;margin-top: 10px;" class="layui-form-label">产品图片：</label>
                <div id="UPDATEimgs">

                </div>
                <button onclick="javascript:claryAll()" style="margin-left: 0px;width: 80%;float: left;width: 15%;" type="button" name="title" class="layui-btn layui-btn-warm">初始化上传组件</button>
                <button style="margin-top: 0px;margin-left: 4px;width: 100px;" onclick="javascript:fileUPDATEimgs();" type="button" class="layui-btn layui-btn-normal upimg">上传图片</button>
                <button style="margin-top: 0px;margin-left: 4px;width: 140px;" onclick="javascript:$('#myModal14').modal('show');" type="button" class="layui-btn layui-btn-normal">上传图片说明</button>
                <div class="layui-input-block" style="width:100%;margin-left: 0px;margin-top: 10px;text-align: center;">
                    <button style="margin-top: 10px;margin-left: 4px;width: 100px;" onclick="javascript:updateProducts();" type="button" class="layui-btn layui-btn-normal">确认修改</button>
                </div>

            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="javascript:window.location.replace($('body').attr('id')+'Logins.html')" >&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center">
                请勿非法登录！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="javascript:window.location.replace($('body').attr('id')+'Logins.html')" >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" >&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
                <p style="padding-left: 10px;background-color: red;color: #ffffff;text-align: left;font-size: large;">查询全部：</p>
                 <p>   1.分类清空状态搜索为全部</p>
                <p style="padding-left: 10px;background-color: red;color: #ffffff;text-align: left;font-size: large;">查询指定：</p>
                 <p>   1.分类选中状态搜索为指定</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" >&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
               编号没有获取 或者 产品类没有写清楚！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal4" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" >&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
                无法添加，编号或者类名称已存在！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal5" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" >&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
                添加成功！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


<div class="modal fade" id="myModal6" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" >&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
                删除分类会联级删除分类下的所有产品无法！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<div class="modal fade" id="myModal7" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" >&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
                请先刷新分类在提交删除！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<div class="modal fade" id="myModal8" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="javascript:shflasclass();">&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
                处理成功，请刷新数据！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="javascript:shflasclass();"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal9" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="javascript:shflasclass();">&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
                请先刷新分,或者信息，不能留空提交
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="javascript:shflasclass();"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal10" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="javascript:shflasclass();">&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
                旧分类与新分类相同无需修改！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="javascript:shflasclass();"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal11" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="javascript:shflasclass();">&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
                请填写所有信息，否则无法提交！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="javascript:shflasclass();"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal12" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="javascript:shflasclass();">&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
                添加失败产品编号已经存在了！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="javascript:shflasclass();"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<div class="modal fade" id="myModal13" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="javascript:shflasclass();">&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;font-size: large;">
                添加产品成功！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="javascript:shflasclass();"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<div class="modal fade" id="myModal14" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: left;font-size: large;">
                上传图片采用的是程序内部的调用方式，点击以后最小化网页就可以选择图片。
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal15" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: left;font-size: large;">
                请先获取分类数据然后选择需要删除的产品，进行删除！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal16" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" >&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: left;font-size: large;">
                删除失败数据不存在无法删除！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"   >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<div class="modal fade" id="myModal17" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: left;font-size: large;">
                要修改的数据不能留空必须全部填写！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal18" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="javascript:layui.UpdateproductflSH();" >&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: left;font-size: large;">
                修改成功请刷新数据！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="javascript:layui.UpdateproductflSH();"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal19" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" >&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: left;font-size: large;">
                新分类非必选！,选择以后将挪动分类位置！
                <br/>
                数据需要全部填写不能留空！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"   >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal20" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: center">
                <h1 class="text-center alert alert-warning">
                    <small>欢迎赞助SnailCatMall </small>
                </h1>
                <img style="width: 150px;height: 150px;" src="webapp/images/1a9b466d048711236c98e1a0712cde4.png"/>
                <img style="width: 150px;height: 150px;margin-left: 10px;margin-right: 10px;" src="webapp/images/418ec81998a59b07d302bcb3b136e26.png"/>
                <img style="width: 150px;height: 150px;" src="webapp/images/cf98ae46f1a11f05827b269a652d327.png"/>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<div class="modal fade" id="myModal21" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" style="text-align: left;font-size: large;">
                初始化成功！可以上传图片了！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"  >关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>





<script type="text/javascript">
    try {
        layui.define(['carousel','element', 'layer','table','laypage','laydate'], function(exports){
            var laypage = layui.laypage;
            var element = layui.element;
            var layer = layui.layer;
            var table = layui.table;


            $('.layui-btn-normal').on('click', function(){
                element.tabChange('demo', $(this).attr('lay-id'));
            });
            table.on('row(classIFY)', function(obj) {
                var data = obj.data;
                $('#classifysimte').val(data.classifyMd5);
            });
            table.on('row(updatePRODUCTA)', function(obj){
                var data = obj.data;
                $('#UPDATEPRODUCT_NUMBER').val(data.productNumber);
                $('#UPDATEPRODUCT_NAME').val(data.productName);
                $('#UPDATEPRODUCT_PROPERTY').val(data.productProperty);
                $('#UPDATEimgs').empty();
                $('#UPDATEimgs').append("<img style='width:100px;height:100px' src='"+data.productImages1+"'/>");
                $('#UPDATEimgs').append("<img style='width:100px;height:100px' src='"+data.productImages2+"'/>");
                $('#UPDATEimgs').append("<img style='width:100px;height:100px' src='"+data.productImages3+"'/>");
                $('#UPDATEimgs').append("<img style='width:100px;height:100px' src='"+data.productImages4+"'/>");
                $('#UPDATEimgs').append("<img style='width:100px;height:100px' src='"+data.productImages5+"'/>");
                $('#hiddenID').val(data.productId);
                $('#NewupdateProduct option:contains(' + $('#updateProduct option:selected').html() + ')').each(function() {
                    $(this).attr('selected', true);
                });





                });
            table.on('row(PRODUCTA)', function(obj){

                $('#nunbers').val(obj.data.productNumber);
            });

            exports('flashflah', function () {
                $.ajax({
                    url: $('body').attr('id')+"adminroot.html",
                    type: "post",
                    contentType: "application/json; charset=utf-8",
                    data: {
                        stage:"PAGING",
                        proimtem:"CLASSIFY"
                    },success: function (data) {
                        laypage.render({
                            elem: 'Classifypaging'
                            ,count: data*10
                            ,jump: function(obj){
                                table.render({
                                    elem: '#classIFY'
                                    ,url:$('body').attr('id')+'adminroot.html?stage=classIFY&index='+obj.curr
                                    ,cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                                    ,cols: [[
                                        {field:'classifyId', title: 'ID', sort: true}
                                        ,{field:'classifyMd5', title: '分类编号'} //width 支持：数字、百分比和不填写。你还可以通过 minWidth 参数局部定义当前单元格的最小宽度，layui 2.2.1 新增
                                        ,{field:'classifyName', title: '分类名称', sort: true}
                                    ]]
                                });
                            }
                        });
                    }});
            });
            layui.flashflah();
            exports('productflag', function () {
                $.ajax({
                    url: $('body').attr('id')+"adminroot.html",
                    type: "post",
                    contentType: "application/json; charset=utf-8",
                    data: {
                        stage:"PAGING",
                        proimtem:"PRODUCT"
                    },success: function (data) {
                        laypage.render({
                            elem: 'PRODUCTpaging'
                            ,count: data*10
                            ,jump: function(obj){
                                if($('#classifysimte').val()==""){
                                    table.render({
                                        elem: '#PRODUCT'
                                        ,url:$('body').attr('id')+'adminroot.html?stage=PRODUCT&index='+obj.curr
                                        ,cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                                        ,cols: [[
                                            {field:'productId', title: 'ID', sort: true}
                                            ,{field:'productNumber', title: '产品编号'}
                                            ,{field:'productName', title: '产品名称'}
                                            ,{field:'productDate', title: '录入时间', sort: true}
                                        ]]
                                    });
                                }else if($('#classifysimte').val()!=""){
                                    table.render({
                                        elem: '#PRODUCT'
                                        ,url:$('body').attr('id')+'adminroot.html?stage=PRODUCT&index='+obj.curr+'&PRODUCT_MD5='+$('#classifysimte').val()
                                        ,cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                                        ,cols: [[
                                            {field:'productId', title: 'ID', sort: true}
                                            ,{field:'productNumber', title: '产品编号'}
                                            ,{field:'productName', title: '产品名称'}
                                            ,{field:'productDate', title: '录入时间', sort: true}
                                        ]]
                                    });
                                }
                            }
                        });
                    }});
            });
            layui.productflag();

            exports('productflSH', function () {
                $.ajax({
                    url: $('body').attr('id')+"adminroot.html",
                    type: "post",
                    contentType: "application/json; charset=utf-8",
                    data: {
                        stage:"PAGING",
                        proimtem:"PRODUCT"
                    },success: function (data) {
                        laypage.render({
                            elem: 'PRODUCTApaging'
                            ,count: data*10
                            ,jump: function(obj){
                                if($('#delectProduct option:selected').val()!=""){
                                    table.render({
                                        elem: '#PRODUCTA'
                                        ,url:$('body').attr('id')+'adminroot.html?stage=PRODUCT&index='+obj.curr+'&PRODUCT_MD5='+$('#delectProduct option:selected').val()
                                        ,cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                                        ,cols: [[
                                            {field:'productId', title: 'ID', sort: true}
                                            ,{field:'productNumber', title: '产品编号'}
                                            ,{field:'productName', title: '产品名称'}
                                            ,{field:'productDate', title: '录入时间', sort: true}
                                        ]]
                                    });
                                }
                            }
                        });
                    }});
            });

            exports('UpdateproductflSH', function () {
                $.ajax({
                    url: $('body').attr('id')+"adminroot.html",
                    type: "post",
                    contentType: "application/json; charset=utf-8",
                    data: {
                        stage:"PAGING",
                        proimtem:"PRODUCT"
                    },success: function (data) {
                        laypage.render({
                            elem: 'updatePRODUCTpaging'
                            ,count: data*10
                            ,jump: function(obj){
                                if($('#updateProduct option:selected').val()!=""){
                                    table.render({
                                        elem: '#updatePRODUCTA'
                                        ,url:$('body').attr('id')+'adminroot.html?stage=PRODUCT&index='+obj.curr+'&PRODUCT_MD5='+$('#updateProduct option:selected').val()
                                        ,cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                                        ,cols: [[
                                            {field:'productId', title: 'ID', sort: true}
                                            ,{field:'productNumber', title: '产品编号'}
                                            ,{field:'productName', title: '产品名称'}
                                            ,{field:'productDate', title: '录入时间', sort: true}
                                        ]]
                                    });
                                }
                            }
                        });
                    }});
            });


        });


    }catch (e) {

    }
</script>

<script type="text/javascript">
    $(function () {
        $.ajax({
            url: $('body').attr('id')+"adminroot.html",
            type: "post",
            contentType: "application/json; charset=utf-8",

            data: {
                stage:"Itres"
            },success: function (data) {

                var myChart = echarts.init(document.getElementById('groupproductsitem'));
                option = {
                    backgroundColor: '#2c343c',
                    title: {
                        text: '分类产品数量',
                        left: 'center',
                        top: 20,
                        textStyle: {
                            color: '#fff'
                        }
                    },

                    tooltip : {
                        trigger: 'item',
                        formatter: "{a} <br/>{b} : {c} ({d}%)"
                    },
                    series : [
                        {
                            name:'产品分类数量',
                            type:'pie',
                            radius : '55%',
                            center: ['50%', '50%'],
                            data:eval(data).sort(function (a, b) { return a.value - b.value; }),
                            roseType: 'radius',
                            label: {
                                normal: {
                                    textStyle: {
                                        color: 'rgba(255, 255, 255, 0.3)'
                                    }
                                }
                            },
                            labelLine: {
                                normal: {
                                    lineStyle: {
                                        color: 'rgba(255, 255, 255, 0.3)'
                                    },
                                    smooth: 0.2,
                                    length: 10,
                                    length2: 20
                                }
                            },
                            itemStyle: {
                                normal: {
                                    color: '#c23531',
                                    shadowBlur: 200,
                                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                                }
                            },

                            animationType: 'scale',
                            animationEasing: 'elasticOut',
                            animationDelay: function (idx) {
                                return Math.random() * 200;
                            }
                        }
                    ]
                };
                myChart.setOption(option);
            }});
    })
</script>
<script type="text/javascript">
    $(function () {
        $.ajax({
            url: $('body').attr('id')+"adminroot.html",
            type: "post",
            contentType: "application/json; charset=utf-8",
            data: {
                stage:"SessionID"
            },success: function (data) {
                if(data=='SessionError'){
                    $('#myModal1').modal('show');
                }else{
                    $('#sessio').html("<b style='float: left;'>VIP管理员账号：</b>"+data+"<a href='"+$('body').attr('id')+"adminroot.html?stage=ONCLOSE"+"' style='cursor: pointer;float: right;' class='layui-btn layui-btn-danger'>退出登录</a>");
                }
            }});
    });
    function porsMD5() {
        $.ajax({
            url: $('body').attr('id')+"adminroot.html",
            type: "post",
            contentType: "application/json; charset=utf-8",
            data: {
                stage:"porsMD5"
            },success: function (data) {
                $('#umd5').val(data);
            }});
    }
    function addprodurt() {
        if($('#umd5').val()!="" && $('#nameprodurect').val() !="" && $('#Addicons').attr('src')!="webapp/images/418ec81998a59b07d302bcb3b136e26.png"){
            $.ajax({
                url: $('body').attr('id')+"adminroot.html",
                type: "post",
                contentType: "application/json; charset=utf-8",
                data: {
                    stage:"addprodurt",
                    umd5:$('#umd5').val(),
                    nameprodurect:$('#nameprodurect').val()
                },success: function (data) {
                   if(data=='类已经存在'){
                       $('#myModal4').modal('show');
                   }
                   if(data=='分类添加成功'){
                       $('#umd5').val();
                       $('#nameprodurect').val();
                       $('#myModal5').modal('show');
                   }
                }});
        }else{
            $('#myModal3').modal('show');
        }
    }
    function shflasclass() {
        $.ajax({
            url: $('body').attr('id')+"adminroot.html",
            type: "post",
            contentType: "application/json; charset=utf-8",
            data: {
                stage:"PRODUCT",
                classifyMd5all:"classifyMd5all"
            },success: function (data) {
                $('#addclassfiy').empty();
                $('#updateclassfiy').empty();
                $('#addProduct').empty();
                $('#delectProduct').empty();
                $('#updateProduct').empty();
                $('#NewupdateProduct').empty();
                var json = eval(data);
               for(var i=0;i<json.length;i++){
                   $('#addProduct').append("<option id='thison' value='"+json[i].classifyMd5+"'>"+json[i].classifyName+"</option>");
                   $('#updateclassfiy').append("<option id='thison' value='"+json[i].classifyMd5+"'>"+json[i].classifyName+"</option>");
                   $('#addclassfiy').append("<option id='thison' value='"+json[i].classifyMd5+"'>"+json[i].classifyName+"</option>");
                   $('#delectProduct').append("<option id='thison' value='"+json[i].classifyMd5+"'>"+json[i].classifyName+"</option>");
                   $('#updateProduct').append("<option id='thison' value='"+json[i].classifyMd5+"'>"+json[i].classifyName+"</option>");
                   $('#NewupdateProduct').append("<option id='thison' value='"+json[i].classifyMd5+"'>"+json[i].classifyName+"</option>");
               }
            }});
    }
    function delectclass() {
        if($("#addclassfiy").html()!=""){
            $.ajax({
                url: $('body').attr('id')+"adminroot.html",
                type: "post",
                contentType: "application/json; charset=utf-8",
                data: {
                    stage:"delectclass",
                    MUMD5:$("#addclassfiy option:selected").val()
                },success: function (data) {
                    if(data=="删除成功"){
                        $('#myModal8').modal('show');
                    }
                }});
        }else{
            $('#myModal7').modal('show');
        }
    }
    function updatectclass() {
        if($("#updateclassfiy").html()!="" && $('#newnames').val() !=""){
            if($("#updateclassfiy option:selected").html()!=$('#newnames').val()){
                if($('#UPicons').attr('src')!="webapp/images/418ec81998a59b07d302bcb3b136e26.png"){
                    $.ajax({
                        url: $('body').attr('id')+"adminroot.html",
                        type: "post",
                        contentType: "application/json; charset=utf-8",
                        data: {
                            stage:"updatectclass",
                            MUMD5:$("#updateclassfiy option:selected").val(),
                            NEWMDNAME:$('#newnames').val(),
                            flas:"true"
                        },success: function (data) {
                            if(data=="修改成功"){
                                $('#myModal8').modal('show');
                            }
                        }});
                }else{
                    $.ajax({
                        url: $('body').attr('id')+"adminroot.html",
                        type: "post",
                        contentType: "application/json; charset=utf-8",
                        data: {
                            stage:"updatectclass",
                            MUMD5:$("#updateclassfiy option:selected").val(),
                            NEWMDNAME:$('#newnames').val(),
                            flas:"flase"
                        },success: function (data) {
                            if(data=="修改成功"){
                                $('#myModal8').modal('show');
                            }
                        }});
                }

            }else{
                $('#myModal10').modal('show');
            }
        }else{
            $('#myModal9').modal('show');
        }
    }
    function fileimgs() {
       var s =  $.ajax({url:$('body').attr('id')+"adminroot.html?FILE=5&PNG=泉州鲤城嘉源塑料制品有限公司",async:false}).responseText;
       var json =JSON.parse(s);
        $('#imgarray').empty();
        for (key in json){
            if(json[key].pATH!="null"){
                if($('#imgarray').attr('src')!="undefined"){
                    $('#imgarray').append("<img id='"+key+"' style='width:100px;height:100px' name='"+json[key].nAME+"' src='"+json[key].pATH+"'/>");
                }else{
                    $('#imgarray').empty();
                    break;
                }
            }
        }
    }

    function ONPRODUCT() {
        if($("#addProduct").html()!="" && $('#PRODUCT_NUMBER').val()!="" && $('#PRODUCT_NAME').val()!="" && $('#PRODUCT_PROPERTY').val()!="" && $('#imgs').attr('src')!=''){
            if($('#imgs').attr('src')!='webapp/images/418ec81998a59b07d302bcb3b136e26.png'){

                $.ajax({
                    url: $('body').attr('id')+"adminroot.html",
                    type: "get",
                    contentType: "application/json; charset=utf-8",
                    data: {
                        stage:"ONPRODUCT",
                        MUMD5:$("#addProduct option:selected").val(),
                        PRODUCT_NUMBER:$('#PRODUCT_NUMBER').val(),
                        PRODUCT_NAME:$('#PRODUCT_NAME').val(),
                        PRODUCT_PROPERTY:$('#PRODUCT_PROPERTY').val()
                    },success: function (data) {
                        if(data=='添加失败'){
                            $('#myModal12').modal('show');
                        }
                        if(data=='添加成功'){
                            $('#imgarray').empty();
                            $("#addProduct option:selected").val("");
                            $('#PRODUCT_NUMBER').val("");
                            $('#PRODUCT_NAME').val("");
                            $("#PRODUCT_PROPERTY").val("<li>名称：</li>\n" +
                                "<li>规格：</li>\n" +
                                "<li>材质：</li>\n" +
                                "<li>容量：</li>\n" +
                                "<li>包装：</li>\n" +
                                "<li>净重：</li>\n" +
                                "<li>毛重：</li>\n" +
                                "<li>箱规：</li>");
                            $('#imgs').attr('src','webapp/images/418ec81998a59b07d302bcb3b136e26.png');
                            $('#myModal13').modal('show');
                        }
                    }});
            }else{
                $('#myModal11').modal('show');
            }
        }else{
            $('#myModal11').modal('show');
        }
    }
    function deleteprot() {
        if($('#nunbers').val() !=""){
            $.ajax({
                url: $('body').attr('id')+"adminroot.html",
                type: "post",
                contentType: "application/json; charset=utf-8",
                data: {
                    stage:"deleteprot",
                    numder:$('#nunbers').val()
                },success: function (data) {
                    if(data=="删除成功"){
                        $('#myModal8').modal('show');
                        layui.productflSH();
                    }
                    if(data=="删除失败"){
                        $('#myModal16').modal('show');
                    }
                }});
        }else {
            $('#myModal15').modal('show');
        }
    }
    
    function updateProducts() {
        if($('#updateProduct option:selected').html()!="" && $('#UPDATEPRODUCT_NUMBER').val()!="" && $('#UPDATEPRODUCT_NAME').val()!="" && $('#UPDATEPRODUCT_PROPERTY').val()!=""){
            $.ajax({
                url: $('body').attr('id')+"adminroot.html",
                type: "get",
                contentType: "application/json; charset=utf-8",
                data: {
                    stage:"UPDATEONPRODUCT",
                    MUMD5:$("#updateProduct option:selected").val(),
                    newMUMD5:$("#NewupdateProduct option:selected").val(),
                    PRODUCT_NUMBER:$('#UPDATEPRODUCT_NUMBER').val(),
                    PRODUCT_NAME:$('#UPDATEPRODUCT_NAME').val(),
                    PRODUCT_PROPERTY:$('#UPDATEPRODUCT_PROPERTY').val(),
                    hiddenID:$('#hiddenID').val()
                },success: function (data) {
                    if(data=="修改成功"){
                        $('#myModal18').modal('show');
                    }
                }});
        } else{
            $('#myModal17').modal('show');
        }
    }
    function fileUPDATEimgs() {
        var s =  $.ajax({url:$('body').attr('id')+"adminroot.html?FILE=5&PNG=泉州鲤城嘉源塑料制品有限公司",async:false}).responseText;
        var json =JSON.parse(s);
        $('#UPDATEimgs').empty();
        for (key in json){
            if(json[key].pATH!="null"){
                if($('#UPDATEimgs').attr('src')!="undefined"){
                    $('#UPDATEimgs').append("<img id='"+key+"' style='width:100px;height:100px' name='"+json[key].nAME+"' src='"+json[key].pATH+"'/>");
                }else{
                    $('#UPDATEimgs').empty();
                    break;
                }
            }
        }
    }
    function onAddicons() {
        var s =  $.ajax({url:$('body').attr('id')+"adminroot.html?FILE=1&PNG=null",async:false}).responseText;
        var json =JSON.parse(s);
        $('#Addicons').attr('src',"webapp/images/418ec81998a59b07d302bcb3b136e26.png");
        for (key in json){
            if(json[key].pATH!="null"){
                if($('#UPDATEimgs').attr('src')!="undefined"){
                    $('#Addicons').attr('src',json[key].pATH);
                }else{
                    $('#Addicons').attr('src',"webapp/images/418ec81998a59b07d302bcb3b136e26.png");
                    break;
                }
            }
        }
    }
    function onUPicons() {
        var s =  $.ajax({url:$('body').attr('id')+"adminroot.html?FILE=1&PNG=null",async:false}).responseText;
        var json =JSON.parse(s);
        $('#UPicons').attr('src',"webapp/images/418ec81998a59b07d302bcb3b136e26.png");
        for (key in json){
            if(json[key].pATH!="null"){
                if($('#UPicons').attr('src')!="undefined"){
                    $('#UPicons').attr('src',json[key].pATH);
                }else{
                    $('#UPicons').attr('src',"webapp/images/418ec81998a59b07d302bcb3b136e26.png");
                    break;
                }
            }
        }
    }
    function tihsi(a) {
        $.ajax({
            url: $('body').attr('id')+"adminroot.html",
            type: "get",
            contentType: "application/json; charset=utf-8",
            data: {
                stage:"ICONS",
                MUMD5:$("#updateclassfiy option:selected").val()
            },success: function (data) {
                $('#UPicons').attr('src',data);
            }});


    }
    function claryAll() {
        var s =  $.ajax({url:$('body').attr('id')+"adminroot.html?stage=claryAll",async:false}).responseText;
        if(s=="OK"){
            $('#myModal21').modal('show');
        }
    }
    $(function () {
        $("#PRODUCT_PROPERTY").val("<li>名称：</li>\n" +
            "<li>规格：</li>\n" +
            "<li>材质：</li>\n" +
            "<li>容量：</li>\n" +
            "<li>包装：</li>\n" +
            "<li>净重：</li>\n" +
            "<li>毛重：</li>\n" +
            "<li>箱规：</li>");
    })
</script>




